
package com.ebuy.mall.dao;

import com.ebuy.mall.entity.EBuyMallOrder;
import com.ebuy.mall.util.PageQueryUtil;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface EBuyMallOrderMapper {
    int deleteByPrimaryKey(Long orderId);

    int insert(EBuyMallOrder record);

    int insertSelective(EBuyMallOrder record);

    EBuyMallOrder selectByPrimaryKey(Long orderId);

    EBuyMallOrder selectByOrderNo(String orderNo);

    int updateByPrimaryKeySelective(EBuyMallOrder record);

    int updateByPrimaryKey(EBuyMallOrder record);

    List<EBuyMallOrder> findNewBeeMallOrderList(PageQueryUtil pageUtil);

    int getTotalNewBeeMallOrders(PageQueryUtil pageUtil);

    List<EBuyMallOrder> selectByPrimaryKeys(@Param("orderIds") List<Long> orderIds);

    int checkOut(@Param("orderIds") List<Long> orderIds);

    int closeOrder(@Param("orderIds") List<Long> orderIds, @Param("orderStatus") int orderStatus);

    int checkDone(@Param("orderIds") List<Long> asList);

    List<EBuyMallOrder> selectPrePayOrders();
}
